import {
  defineStore
} from 'pinia';

export const usePetStore = defineStore('pet', {
  state: () => ({
    currentCategory: 'default' // 默认异宠类型
  }),
  actions: {
    setCurrentCategory(category) {
      this.currentCategory = category;
      // localStorage.setItem('currentPetType', type);
    },
    getCurrentCategory() {
      return this.currentCategory;
    }
  }
});